package shinda27.basic;

import java.util.Scanner;

public class J06_SungJuk_v3 {

	public static void main(String[] args) {
		Scanner sc=null;
		String n="";
		int kor, eng, mat;
		int ex=1;
		sc= new Scanner(System.in);
		
		final String title = "성적 처리 프로그램";
		final String HDLine = "---------------------";
		final String guide1 = "이름은?";
		final String guide2 = "국어는?";
		final String guide3 = "수학은?";
		final String guide4 = "영어는?";
		final String guide5 = "계속 입력하시겠습니까?(예 : 1, 아니오 : 2)";
		System.out.println(title);
		System.out.println(HDLine);
		while(ex !=2){
		System.out.println(guide1);
		n=sc.next();
		System.out.println(guide2);
		kor=sc.nextInt();
		System.out.println(guide3);
		mat=sc.nextInt();
		System.out.println(guide4);
		eng=sc.nextInt();
		System.out.println(guide5);
		ex=sc.nextInt();
		}
		System.out.println("성적 입력을 마치셨습니다.");
		sc.close();
		
		
	}

}
